<template>
  <div>
    <div>
			<van-nav-bar class="fbb" @click-left="$router.back()" style="background: #d12d1a;"  title="文章详情"  left-arrow  />
		</div>
    <div class="bt">
      <h3>
        {{ dx.title }}
      </h3>
    </div>
    <div class="disp">
      <div>
        <img class="tp" :src="dx.avatar" />
      </div>
      <div>
        <div style="font-size: 14px;margin: 2px 0 0 0;">作者</div>
        <div style="font-size: 13px;margin: 22px 0 0 0;">{{ dx.time }}</div>
      </div>
      <div class="gz">关注</div>
    </div>
    <div style="margin: 0 20px 35px 20px;" class="wid">
      {{ dx.content }}
    </div>

  </div>
</template>

<script>
export default {
  props: {
    dx: {
      // type:Array,
      // default(){
      //     return []
      // }
      required: true,
    },
  },
};
</script>

<style scoped>
::v-deep .van-nav-bar__title{
	  color: rgb(255,255,255);

}
.bt {
  margin: 20px 0 0 20px;
}
.tp {
  width: 60px;
  height: 60px;
  border-radius: 5px;
  margin: 0 10px 0 0;
}
.gz {
  border: 1px solid rgb(220, 220, 220);
  border-radius: 20px;
  padding: 6px 20px;
  height: 20px;
  margin: 14px 0 0 140px;
}
.disp {
  display: flex;
  /* border-bottom: 1px solid rgb(220,220,220);
     margin: 20px 20px; */
  border-bottom: 1px solid rgb(220, 220, 220);
  margin: 20px 20px;
  padding: 0 0 20px 0;
}
.wid{
  font-size: 15px;
  width: 336px !important;
}
::v-deep .van-nav-bar__arrow{
	  color: rgb(255,255,255);

}
</style>